home *** CD-ROM | disk | FTP | other *** search
/ Mac Easy 2010 May / Mac Life Ubuntu.iso / casper / filesystem.squashfs / usr / share / gst-python / 0.10 / defs / base.defs < prev    next >
Encoding:
Text File  |  2009-02-21  |  19.8 KB  |  1,061 lines

  1. ;; -*- scheme -*-
  2. ; object definitions ...
  3. (define-object Adapter
  4.   (in-module "Gst")
  5.   (parent "GObject")
  6.   (c-name "GstAdapter")
  7.   (gtype-id "GST_TYPE_ADAPTER")
  8. )
  9.  
  10. (define-object BaseSink
  11.   (in-module "Gst")
  12.   (parent "GstElement")
  13.   (c-name "GstBaseSink")
  14.   (gtype-id "GST_TYPE_BASE_SINK")
  15. )
  16.  
  17. (define-object BaseSrc
  18.   (in-module "Gst")
  19.   (parent "GstElement")
  20.   (c-name "GstBaseSrc")
  21.   (gtype-id "GST_TYPE_BASE_SRC")
  22. )
  23.  
  24. (define-object BaseTransform
  25.   (in-module "Gst")
  26.   (parent "GstElement")
  27.   (c-name "GstBaseTransform")
  28.   (gtype-id "GST_TYPE_BASE_TRANSFORM")
  29. )
  30.  
  31. (define-object CollectPads
  32.   (in-module "Gst")
  33.   (parent "GstObject")
  34.   (c-name "GstCollectPads")
  35.   (gtype-id "GST_TYPE_COLLECT_PADS")
  36. )
  37.  
  38. (define-object DataQueue
  39.   (in-module "Gst")
  40.   (parent "GObject")
  41.   (c-name "GstDataQueue")
  42.   (gtype-id "GST_TYPE_DATA_QUEUE")
  43. )
  44.  
  45. ; PushSrc doesn't work due to limitations in the code generator, so disable
  46. ;(define-object PushSrc
  47. ;  (in-module "Gst")
  48. ;  (parent "GstBaseSrc")
  49. ;  (c-name "GstPushSrc")
  50. ;  (gtype-id "GST_TYPE_PUSH_SRC")
  51. ;)
  52.  
  53. ;; Enumerations and flags ...
  54.  
  55. ; (define-flags BaseSrcFlags
  56. ;   (in-module "Gst")
  57. ;   (c-name "GstBaseSrcFlags")
  58. ;   (gtype-id "GST_TYPE_BASE_SRC_FLAGS")
  59. ;   (values
  60. ;     '("started" "GST_BASE_SRC_STARTED")
  61. ;     '("flag-last" "GST_BASE_SRC_FLAG_LAST")
  62. ;   )
  63. ; )
  64.  
  65.  
  66. ;; From ../gstreamer/libs/gst/base/gstadapter.h
  67.  
  68. (define-function gst_adapter_new
  69.   (c-name "gst_adapter_new")
  70.   (is-constructor-of "GstAdapter")
  71.   (return-type "GstAdapter*")
  72. )
  73.  
  74. (define-method clear
  75.   (of-object "GstAdapter")
  76.   (c-name "gst_adapter_clear")
  77.   (return-type "none")
  78. )
  79.  
  80. (define-method push
  81.   (of-object "GstAdapter")
  82.   (c-name "gst_adapter_push")
  83.   (return-type "none")
  84.   (parameters
  85.     '("GstBuffer*" "buf" (keep-refcount))
  86.   )
  87. )
  88.  
  89. (define-method peek
  90.   (of-object "GstAdapter")
  91.   (c-name "gst_adapter_peek")
  92.   (return-type "const-guint8*")
  93.   (parameters
  94.     '("guint" "size")
  95.   )
  96. )
  97.  
  98. (define-method copy
  99.   (of-object "GstAdapter")
  100.   (c-name "gst_adapter_copy")
  101.   (return-type "none")
  102.   (parameters
  103.     '("guint8*" "dest")
  104.     '("guint" "offset")
  105.     '("guint" "size")
  106.   )
  107. )
  108.  
  109. (define-method flush
  110.   (of-object "GstAdapter")
  111.   (c-name "gst_adapter_flush")
  112.   (return-type "none")
  113.   (parameters
  114.     '("guint" "flush")
  115.   )
  116. )
  117.  
  118. (define-method take
  119.   (of-object "GstAdapter")
  120.   (c-name "gst_adapter_take")
  121.   (return-type "guint8*")
  122.   (parameters
  123.     '("guint" "nbytes")
  124.   )
  125. )
  126.  
  127. (define-method take_buffer
  128.   (of-object "GstAdapter")
  129.   (c-name "gst_adapter_take_buffer")
  130.   (return-type "GstBuffer*")
  131.   (parameters
  132.    '("guint" "nbytes")
  133.   )
  134. )
  135.  
  136. (define-method available
  137.   (of-object "GstAdapter")
  138.   (c-name "gst_adapter_available")
  139.   (return-type "guint")
  140. )
  141.  
  142. (define-method available_fast
  143.   (of-object "GstAdapter")
  144.   (c-name "gst_adapter_available_fast")
  145.   (return-type "guint")
  146. )
  147.  
  148. (define-function gst_adapter_get_type
  149.   (c-name "gst_adapter_get_type")
  150.   (return-type "GType")
  151. )
  152.  
  153.  
  154.  
  155. ;; From ../gstreamer/libs/gst/base/gstbasesink.h
  156.  
  157. (define-function gst_base_sink_get_type
  158.   (c-name "gst_base_sink_get_type")
  159.   (return-type "GType")
  160. )
  161.  
  162. (define-method wait_preroll
  163.   (of-object "GstBaseSink")
  164.   (c-name "gst_base_sink_wait_preroll")
  165.   (return-type "GstFlowReturn")
  166. )
  167.  
  168. (define-method set_sync
  169.   (of-object "GstBaseSink")
  170.   (c-name "gst_base_sink_set_sync")
  171.   (return-type "none")
  172.   (parameters
  173.     '("gboolean" "sync")
  174.   )
  175. )
  176.  
  177. (define-method get_sync
  178.   (of-object "GstBaseSink")
  179.   (c-name "gst_base_sink_get_sync")
  180.   (return-type "gboolean")
  181. )
  182.  
  183. (define-method set_max_lateness
  184.   (of-object "GstBaseSink")
  185.   (c-name "gst_base_sink_set_max_lateness")
  186.   (return-type "none")
  187.   (parameters
  188.     '("gint64" "max_lateness")
  189.   )
  190. )
  191.  
  192. (define-method get_max_lateness
  193.   (of-object "GstBaseSink")
  194.   (c-name "gst_base_sink_get_max_lateness")
  195.   (return-type "gint64")
  196. )
  197.  
  198. (define-method set_qos_enabled
  199.   (of-object "GstBaseSink")
  200.   (c-name "gst_base_sink_set_qos_enabled")
  201.   (return-type "none")
  202.   (parameters
  203.     '("gboolean" "enabled")
  204.   )
  205. )
  206.  
  207. (define-method is_qos_enabled
  208.   (of-object "GstBaseSink")
  209.   (c-name "gst_base_sink_is_qos_enabled")
  210.   (return-type "gboolean")
  211. )
  212.  
  213. (define-method set_async_enabled
  214.   (of-object "GstBaseSink")
  215.   (c-name "gst_base_sink_set_async_enabled")
  216.   (return-type "none")
  217.   (parameters
  218.     '("gboolean" "enabled")
  219.   )
  220. )
  221.  
  222. (define-method is_async_enabled
  223.   (of-object "GstBaseSink")
  224.   (c-name "gst_base_sink_is_async_enabled")
  225.   (return-type "gboolean")
  226. )
  227.  
  228. (define-method set_ts_offset
  229.   (of-object "GstBaseSink")
  230.   (c-name "gst_base_sink_set_ts_offset")
  231.   (return-type "none")
  232.   (parameters
  233.     '("GstClockTimeDiff" "offset")
  234.   )
  235. )
  236.  
  237. (define-method get_ts_offset
  238.   (of-object "GstBaseSink")
  239.   (c-name "gst_base_sink_get_ts_offset")
  240.   (return-type "GstClockTimeDiff")
  241. )
  242.  
  243. (define-method get_last_buffer
  244.   (of-object "GstBaseSink")
  245.   (c-name "gst_base_sink_get_last_buffer")
  246.   (return-type "GstBuffer*")
  247. )
  248.  
  249. (define-method query_latency
  250.   (of-object "GstBaseSink")
  251.   (c-name "gst_base_sink_query_latency")
  252.   (return-type "gboolean")
  253.   (parameters
  254.     '("gboolean*" "live")
  255.     '("gboolean*" "upstream_live")
  256.     '("GstClockTime*" "min_latency")
  257.     '("GstClockTime*" "max_latency")
  258.   )
  259. )
  260.  
  261. (define-method get_latency
  262.   (of-object "GstBaseSink")
  263.   (c-name "gst_base_sink_get_latency")
  264.   (return-type "GstClockTime")
  265. )
  266.  
  267. (define-method wait_eos
  268.   (of-object "GstBaseSink")
  269.   (c-name "gst_base_sink_wait_eos")
  270.   (return-type "GstFlowReturn")
  271.   (parameters
  272.     '("GstClockTime" "time")
  273.     '("GstClockTimeDiff*" "jitter")
  274.   )
  275. )
  276.  
  277. (define-virtual get_caps
  278.   (of-object "GstBaseSink")
  279.   (return-type "GstCaps*")
  280. )
  281.  
  282. (define-virtual set_caps
  283.   (of-object "GstBaseSink")
  284.   (return-type "gboolean")
  285.   (parameters
  286.    '("GstCaps*" "caps")
  287.   )
  288. )
  289.  
  290. (define-virtual buffer_alloc
  291.   (of-object "GstBaseSink")
  292.   (return-type "GstFlowReturn")
  293.   (parameters
  294.    '("guint64" "offset")
  295.    '("guint" "size")
  296.    '("GstCaps*" "caps")
  297.    '("GstBuffer**" "buffer")
  298.   )
  299. )
  300.  
  301. (define-virtual get_times
  302.   (of-object "GstBaseSink")
  303.   (return-type "none")
  304.   (parameters
  305.    '("GstBuffer*" "buffer")
  306.    '("GstClockTime*" "start")
  307.    '("GstClockTime*" "end")
  308.   )
  309. )
  310.  
  311. (define-virtual start
  312.   (of-object "GstBaseSink")
  313.   (return-type "gboolean")
  314. )
  315.  
  316. (define-virtual stop
  317.   (of-object "GstBaseSink")
  318.   (return-type "gboolean")
  319. )
  320.  
  321. (define-virtual unlock
  322.   (of-object "GstBaseSink")
  323.   (return-type "gboolean")
  324. )
  325.  
  326. (define-virtual event
  327.   (of-object "GstBaseSink")
  328.   (return-type "gboolean")
  329.   (parameters
  330.    '("GstEvent*" "event")
  331.   )
  332. )
  333.  
  334. (define-virtual preroll
  335.   (of-object "GstBaseSink")
  336.   (return-type "GstFlowReturn")
  337.   (parameters
  338.    '("GstBuffer*" "buffer")
  339.   )
  340. )
  341.  
  342. (define-virtual render
  343.   (of-object "GstBaseSink")
  344.   (return-type "GstFlowReturn")
  345.   (parameters
  346.    '("GstBuffer*" "buffer")
  347.   )
  348. )
  349.  
  350. (define-virtual activate_pull
  351.   (of-object "GstBaseSink")
  352.   (return-type "gboolean")
  353.   (parameters
  354.    '("gboolean" "active")
  355.   )
  356. )
  357.  
  358. (define-virtual fixate
  359.   (of-object "GstBaseSink")
  360.   (return-type "none")
  361.   (parameters
  362.    '("GstCaps*" "caps")
  363.   )
  364. )
  365.  
  366. (define-virtual unlock_stop
  367.   (of-object "GstBaseSink")
  368.   (return-type "gboolean")
  369. )
  370.  
  371. ;; From ../gstreamer/libs/gst/base/gstbasesrc.h
  372.  
  373. (define-function gst_base_src_get_type
  374.   (c-name "gst_base_src_get_type")
  375.   (return-type "GType")
  376. )
  377.  
  378. (define-method wait_playing
  379.   (of-object "GstBaseSrc")
  380.   (c-name "gst_base_src_wait_playing")
  381.   (return-type "GstFlowReturn")
  382. )
  383.  
  384. (define-method set_live
  385.   (of-object "GstBaseSrc")
  386.   (c-name "gst_base_src_set_live")
  387.   (return-type "none")
  388.   (parameters
  389.     '("gboolean" "live")
  390.   )
  391. )
  392.  
  393. (define-method is_live
  394.   (of-object "GstBaseSrc")
  395.   (c-name "gst_base_src_is_live")
  396.   (return-type "gboolean")
  397. )
  398.  
  399. (define-method set_format
  400.   (of-object "GstBaseSrc")
  401.   (c-name "gst_base_src_set_format")
  402.   (return-type "none")
  403.   (parameters
  404.     '("GstFormat" "format")
  405.   )
  406. )
  407.  
  408. (define-method query_latency
  409.   (of-object "GstBaseSrc")
  410.   (c-name "gst_base_src_query_latency")
  411.   (return-type "gboolean")
  412.   (parameters
  413.     '("gboolean*" "live")
  414.     '("GstClockTime*" "min_latency")
  415.     '("GstClockTime*" "max_latency")
  416.   )
  417. )
  418.  
  419. (define-method set_do_timestamp
  420.   (of-object "GstBaseSrc")
  421.   (c-name "gst_base_src_set_do_timestamp")
  422.   (return-type "none")
  423.   (parameters
  424.     '("gboolean" "timestamp")
  425.   )
  426. )
  427.  
  428. (define-method get_do_timestamp
  429.   (of-object "GstBaseSrc")
  430.   (c-name "gst_base_src_get_do_timestamp")
  431.   (return-type "gboolean")
  432. )
  433.  
  434. (define-virtual get_caps
  435.   (of-object "GstBaseSrc")
  436.   (return-type "GstCaps*")
  437. )
  438.  
  439. (define-virtual set_caps
  440.   (of-object "GstBaseSrc")
  441.   (return-type "gboolean")
  442.   (parameters
  443.    '("GstCaps*" "caps")
  444.   )
  445. )
  446.  
  447. (define-virtual negotiate
  448.   (of-object "GstBaseSrc")
  449.   (return-type "gboolean")
  450. )
  451.  
  452. (define-virtual newsegment
  453.   (of-object "GstBaseSrc")
  454.   (return-type "gboolean")
  455. )
  456.  
  457. (define-virtual start
  458.   (of-object "GstBaseSrc")
  459.   (return-type "gboolean")
  460. )
  461.  
  462. (define-virtual stop
  463.   (of-object "GstBaseSrc")
  464.   (return-type "gboolean")
  465. )
  466.  
  467. (define-virtual get_times
  468.   (of-object "GstBaseSrc")
  469.   (return-type "none")
  470.   (parameters
  471.    '("GstBuffer*" "buffer")
  472.    '("GstClockTime*" "start")
  473.    '("GstClockTime*" "end")
  474.   )
  475. )
  476.  
  477. (define-virtual get_size
  478.   (of-object "GstBaseSrc")
  479.   (return-type "gboolean")
  480.   (parameters
  481.    '("guint64*" "size")
  482.   )
  483. )
  484.  
  485. (define-virtual is_seekable
  486.   (of-object "GstBaseSrc")
  487.   (return-type "gboolean")
  488. )
  489.  
  490. (define-virtual unlock
  491.   (of-object "GstBaseSrc")
  492.   (return-type "gboolean")
  493. )
  494.  
  495. (define-virtual event
  496.   (of-object "GstBaseSrc")
  497.   (return-type "gboolean")
  498.   (parameters
  499.    '("GstEvent*" "event")
  500.   )
  501. )
  502.  
  503. (define-virtual create
  504.   (of-object "GstBaseSrc")
  505.   (return-type "GstFlowReturn")
  506.   (parameters
  507.    '("guint64" "offset")
  508.    '("guint" "size")
  509.    '("GstBuffer**" "buf")
  510.   )
  511. )
  512.  
  513. (define-virtual do_seek
  514.   (of-object "GstBaseSrc")
  515.   (return-type "gboolean")
  516.   (parameters
  517.    '("GstSegment*" "segment")
  518.   )
  519. )
  520.  
  521. (define-virtual query
  522.   (of-object "GstBaseSrc")
  523.   (return-type "gboolean")
  524.   (parameters
  525.    '("GstQuery*" "query")
  526.   )
  527. )
  528.  
  529. (define-virtual check_get_range
  530.   (of-object "GstBaseSrc")
  531.   (return-type "gboolean")
  532. )
  533.  
  534. (define-virtual fixate
  535.   (of-object "GstBaseSrc")
  536.   (return-type "none")
  537.   (parameters
  538.    '("GstCaps*" "caps")
  539.   )
  540. )
  541.  
  542. (define-virtual unlock_stop
  543.   (of-object "GstBaseSrc")
  544.   (return-type "gboolean")
  545. )
  546.  
  547. (define-virtual prepare_seek_segment
  548.   (of-object "GstBaseSrc")
  549.   (return-type "gboolean")
  550.   (parameters
  551.    '("GstEvent*" "seek")
  552.    '("GstSegment*" "segment")
  553.   )
  554. )
  555.  
  556.  
  557. ;; From ../gstreamer/libs/gst/base/gstbasetransform.h
  558.  
  559. (define-function gst_base_transform_get_type
  560.   (c-name "gst_base_transform_get_type")
  561.   (return-type "GType")
  562. )
  563.  
  564. (define-method set_passthrough
  565.   (of-object "GstBaseTransform")
  566.   (c-name "gst_base_transform_set_passthrough")
  567.   (return-type "none")
  568.   (parameters
  569.     '("gboolean" "passthrough")
  570.   )
  571. )
  572.  
  573. (define-method is_passthrough
  574.   (of-object "GstBaseTransform")
  575.   (c-name "gst_base_transform_is_passthrough")
  576.   (return-type "gboolean")
  577. )
  578.  
  579. (define-method set_in_place
  580.   (of-object "GstBaseTransform")
  581.   (c-name "gst_base_transform_set_in_place")
  582.   (return-type "none")
  583.   (parameters
  584.     '("gboolean" "in_place")
  585.   )
  586. )
  587.  
  588. (define-method is_in_place
  589.   (of-object "GstBaseTransform")
  590.   (c-name "gst_base_transform_is_in_place")
  591.   (return-type "gboolean")
  592. )
  593.  
  594. (define-method update_qos
  595.   (of-object "GstBaseTransform")
  596.   (c-name "gst_base_transform_update_qos")
  597.   (return-type "none")
  598.   (parameters
  599.     '("gdouble" "proportion")
  600.     '("GstClockTimeDiff" "diff")
  601.     '("GstClockTime" "timestamp")
  602.   )
  603. )
  604.  
  605. (define-method set_qos_enabled
  606.   (of-object "GstBaseTransform")
  607.   (c-name "gst_base_transform_set_qos_enabled")
  608.   (return-type "none")
  609.   (parameters
  610.     '("gboolean" "enabled")
  611.   )
  612. )
  613.  
  614. (define-method is_qos_enabled
  615.   (of-object "GstBaseTransform")
  616.   (c-name "gst_base_transform_is_qos_enabled")
  617.   (return-type "gboolean")
  618. )
  619.  
  620. (define-method set_gap_aware
  621.   (of-object "GstBaseTransform")
  622.   (c-name "gst_base_transform_set_gap_aware")
  623.   (return-type "none")
  624.   (parameters
  625.     '("gboolean" "gap_aware")
  626.   )
  627. )
  628.  
  629. (define-method suggest
  630.   (of-object "GstBaseTransform")
  631.   (c-name "gst_base_transform_suggest")
  632.   (return-type "none")
  633.   (parameters
  634.     '("GstCaps*" "caps")
  635.     '("guint" "size")
  636.   )
  637. )
  638.  
  639. (define-method reconfigure
  640.   (of-object "GstBaseTransform")
  641.   (c-name "gst_base_transform_reconfigure")
  642.   (return-type "none")
  643. )
  644.  
  645. (define-virtual transform_caps
  646.   (of-object "GstBaseTransform")
  647.   (return-type "GstCaps*")
  648.   (parameters
  649.    '("GstPadDirection" "direction")
  650.    '("GstCaps*" "caps")
  651.   )
  652. )
  653.  
  654. (define-virtual fixate_caps
  655.   (of-object "GstBaseTransform")
  656.   (return-type "none")
  657.   (parameters
  658.    '("GstPadDirection" "direction")
  659.    '("GstCaps*" "caps")
  660.    '("GstCaps*" "othercaps")
  661.   )
  662. )
  663.  
  664. (define-virtual transform_size
  665.   (of-object "GstBaseTransform")
  666.   (return-type "gboolean")
  667.   (parameters
  668.    '("GstPadDirection" "direction")
  669.    '("GstCaps*" "caps")
  670.    '("guint" "size")
  671.    '("GstCaps*" "othercaps")
  672.    '("guint*" "othersize")
  673.   )
  674. )
  675.  
  676. (define-virtual get_unit_size
  677.   (of-object "GstBaseTransform")
  678.   (return-type "gboolean")
  679.   (parameters
  680.    '("GstCaps*" "caps")
  681.    '("guint*" "size")
  682.   )
  683. )
  684.  
  685. (define-virtual transform_size
  686.   (of-object "GstBaseTransform")
  687.   (return-type "gboolean")
  688.   (parameters
  689.    '("GstCaps*" "caps")
  690.    '("guint*" "size")
  691.    '("GstCaps*" "othercaps")
  692.    '("guint*" "othersize")
  693.   )
  694. )
  695.  
  696. (define-virtual set_caps
  697.   (of-object "GstBaseTransform")
  698.   (return-type "gboolean")
  699.   (parameters
  700.    '("GstCaps*" "incaps")
  701.    '("GstCaps*" "outcaps")
  702.   )
  703. )
  704.  
  705. (define-virtual start
  706.   (of-object "GstBaseTransform")
  707.   (return-type "gboolean")
  708. )
  709.  
  710. (define-virtual stop
  711.   (of-object "GstBaseTransform")
  712.   (return-type "gboolean")
  713. )
  714.  
  715. (define-virtual event
  716.   (of-object "GstBaseTransform")
  717.   (return-type "gboolean")
  718.   (parameters
  719.    '("GstEvent*" "event")
  720.   )
  721. )
  722.  
  723. (define-virtual transform
  724.   (of-object "GstBaseTransform")
  725.   (return-type "GstFlowReturn")
  726.   (parameters
  727.    '("GstBuffer*" "inbuf")
  728.    '("GstBuffer*" "outbuf")
  729.   )
  730. )
  731.  
  732. (define-virtual transform_ip
  733.   (of-object "GstBaseTransform")
  734.   (return-type "GstFlowReturn")
  735.   (parameters
  736.    '("GstBuffer*" "buf")
  737.   )
  738. )
  739.  
  740. (define-virtual prepare_output_buffer
  741.   (of-object "GstBaseTransform")
  742.   (return-type "GstFlowReturn")
  743.   (parameters
  744.    '("GstBuffer*" "input")
  745.    '("gint" "size")
  746.    '("GstCaps*" "caps")
  747.    '("GstBuffer**" "buf")
  748.   )
  749. )
  750.  
  751. (define-virtual src_event
  752.   (of-object "GstBaseTransform")
  753.   (return-type "gboolean")
  754.   (parameters
  755.    '("GstEvent*" "event")
  756.   )
  757. )
  758.  
  759. ;; From ../gstreamer/libs/gst/base/gstcollectpads.h
  760.  
  761. (define-function gst_collect_pads_get_type
  762.   (c-name "gst_collect_pads_get_type")
  763.   (return-type "GType")
  764. )
  765.  
  766. (define-function collect_pads_new
  767.   (c-name "gst_collect_pads_new")
  768.   (is-constructor-of "GstCollectPads")
  769.   (return-type "GstCollectPads*")
  770. )
  771.  
  772. (define-method set_function
  773.   (of-object "GstCollectPads")
  774.   (c-name "gst_collect_pads_set_function")
  775.   (return-type "none")
  776.   (parameters
  777.     '("GstCollectPadsFunction" "func")
  778.     '("gpointer" "user_data")
  779.   )
  780. )
  781.  
  782. (define-method add_pad
  783.   (of-object "GstCollectPads")
  784.   (c-name "gst_collect_pads_add_pad")
  785.   (return-type "GstCollectData*")
  786.   (parameters
  787.     '("GstPad*" "pad")
  788.     '("guint" "size")
  789.   )
  790. )
  791.  
  792. (define-method add_pad_full
  793.   (of-object "GstCollectPads")
  794.   (c-name "gst_collect_pads_add_pad_full")
  795.   (return-type "GstCollectData*")
  796.   (parameters
  797.     '("GstPad*" "pad")
  798.     '("guint" "size")
  799.     '("GstCollectDataDestroyNotify" "destroy_notify")
  800.   )
  801. )
  802.  
  803. (define-method remove_pad
  804.   (of-object "GstCollectPads")
  805.   (c-name "gst_collect_pads_remove_pad")
  806.   (return-type "gboolean")
  807.   (parameters
  808.     '("GstPad*" "pad")
  809.   )
  810. )
  811.  
  812. (define-method is_active
  813.   (of-object "GstCollectPads")
  814.   (c-name "gst_collect_pads_is_active")
  815.   (return-type "gboolean")
  816.   (parameters
  817.     '("GstPad*" "pad")
  818.   )
  819. )
  820.  
  821. (define-method collect
  822.   (of-object "GstCollectPads")
  823.   (c-name "gst_collect_pads_collect")
  824.   (return-type "GstFlowReturn")
  825. )
  826.  
  827. (define-method collect_range
  828.   (of-object "GstCollectPads")
  829.   (c-name "gst_collect_pads_collect_range")
  830.   (return-type "GstFlowReturn")
  831.   (parameters
  832.     '("guint64" "offset")
  833.     '("guint" "length")
  834.   )
  835. )
  836.  
  837. (define-method start
  838.   (of-object "GstCollectPads")
  839.   (c-name "gst_collect_pads_start")
  840.   (return-type "none")
  841. )
  842.  
  843. (define-method stop
  844.   (of-object "GstCollectPads")
  845.   (c-name "gst_collect_pads_stop")
  846.   (return-type "none")
  847. )
  848.  
  849. (define-method set_flushing
  850.   (of-object "GstCollectPads")
  851.   (c-name "gst_collect_pads_set_flushing")
  852.   (return-type "none")
  853.   (parameters
  854.     '("gboolean" "flushing")
  855.   )
  856. )
  857.  
  858. (define-method peek
  859.   (of-object "GstCollectPads")
  860.   (c-name "gst_collect_pads_peek")
  861.   (return-type "GstBuffer*")
  862.   (parameters
  863.     '("GstCollectData*" "data")
  864.   )
  865. )
  866.  
  867. (define-method pop
  868.   (of-object "GstCollectPads")
  869.   (c-name "gst_collect_pads_pop")
  870.   (return-type "GstBuffer*")
  871.   (parameters
  872.     '("GstCollectData*" "data")
  873.   )
  874. )
  875.  
  876. (define-method available
  877.   (of-object "GstCollectPads")
  878.   (c-name "gst_collect_pads_available")
  879.   (return-type "guint")
  880. )
  881.  
  882. (define-method read
  883.   (of-object "GstCollectPads")
  884.   (c-name "gst_collect_pads_read")
  885.   (return-type "guint")
  886.   (parameters
  887.     '("GstCollectData*" "data")
  888.     '("guint8**" "bytes")
  889.     '("guint" "size")
  890.   )
  891. )
  892.  
  893. (define-method read_buffer
  894.   (of-object "GstCollectPads")
  895.   (c-name "gst_collect_pads_read_buffer")
  896.   (return-type "GstBuffer*")
  897.   (parameters
  898.     '("GstCollectData*" "data")
  899.     '("guint" "size")
  900.   )
  901. )
  902.  
  903. (define-method take_buffer
  904.   (of-object "GstCollectPads")
  905.   (c-name "gst_collect_pads_take_buffer")
  906.   (return-type "GstBuffer*")
  907.   (parameters
  908.     '("GstCollectData*" "data")
  909.     '("guint" "size")
  910.   )
  911. )
  912.  
  913. (define-method flush
  914.   (of-object "GstCollectPads")
  915.   (c-name "gst_collect_pads_flush")
  916.   (return-type "guint")
  917.   (parameters
  918.     '("GstCollectData*" "data")
  919.     '("guint" "size")
  920.   )
  921. )
  922.  
  923.  
  924.  
  925. ;; From ../gstreamer/libs/gst/base/gstpushsrc.h
  926.  
  927. ;(define-function gst_push_src_get_type
  928. ;  (c-name "gst_push_src_get_type")
  929. ;  (return-type "GType")
  930. ;)
  931.  
  932. ;(define-virtual create
  933. ;  (of-object "GstPushSrc")
  934. ;  (return-type "GstFlowReturn")
  935. ;  (parameters
  936. ;   '("GstBuffer**" "buf")
  937. ;  )
  938. ;)
  939.  
  940.  
  941.  
  942. ;; From ../gstreamer/libs/gst/base/gsttypefindhelper.h
  943.  
  944. (define-function type_find_helper
  945.   (c-name "gst_type_find_helper")
  946.   (return-type "GstCaps*")
  947.   (parameters
  948.     '("GstPad*" "src")
  949.     '("guint64" "size")
  950.   )
  951. )
  952.  
  953. (define-function type_find_helper_for_buffer
  954.   (c-name "gst_type_find_helper_for_buffer")
  955.   (return-type "GstCaps*")
  956.   (parameters
  957.     '("GstObject*" "obj")
  958.     '("GstBuffer*" "buf")
  959.     '("GstTypeFindProbability*" "prob")
  960.   )
  961. )
  962.  
  963. (define-function type_find_helper_get_range
  964.   (c-name "gst_type_find_helper_get_range")
  965.   (return-type "GstCaps*")
  966.   (parameters
  967.     '("GstObject*" "obj")
  968.     '("GstTypeFindHelperGetRangeFunction" "func")
  969.     '("guint64" "size")
  970.     '("GstTypeFindProbability*" "prob")
  971.   )
  972. )
  973.  
  974. ;; From gstdataqueue.h
  975.  
  976. (define-function gst_data_queue_get_type
  977.   (c-name "gst_data_queue_get_type")
  978.   (return-type "GType")
  979. )
  980.  
  981. (define-function gst_data_queue_new
  982.   (c-name "gst_data_queue_new")
  983.   (is-constructor-of "GstDataQueue")
  984.   (return-type "GstDataQueue*")
  985.   (parameters
  986.     '("GstDataQueueCheckFullFunction" "checkfull")
  987.     '("gpointer" "checkdata")
  988.   )
  989. )
  990.  
  991. (define-method push
  992.   (of-object "GstDataQueue")
  993.   (c-name "gst_data_queue_push")
  994.   (return-type "gboolean")
  995.   (parameters
  996.     '("GstDataQueueItem*" "item")
  997.   )
  998. )
  999.  
  1000. (define-method pop
  1001.   (of-object "GstDataQueue")
  1002.   (c-name "gst_data_queue_pop")
  1003.   (return-type "gboolean")
  1004.   (parameters
  1005.     '("GstDataQueueItem**" "item")
  1006.   )
  1007. )
  1008.  
  1009. (define-method flush
  1010.   (of-object "GstDataQueue")
  1011.   (c-name "gst_data_queue_flush")
  1012.   (return-type "none")
  1013. )
  1014.  
  1015. (define-method set_flushing
  1016.   (of-object "GstDataQueue")
  1017.   (c-name "gst_data_queue_set_flushing")
  1018.   (return-type "none")
  1019.   (parameters
  1020.     '("gboolean" "flushing")
  1021.   )
  1022. )
  1023.  
  1024. (define-method drop_head
  1025.   (of-object "GstDataQueue")
  1026.   (c-name "gst_data_queue_drop_head")
  1027.   (return-type "gboolean")
  1028.   (parameters
  1029.     '("GType" "type")
  1030.   )
  1031. )
  1032.  
  1033. (define-method is_full
  1034.   (of-object "GstDataQueue")
  1035.   (c-name "gst_data_queue_is_full")
  1036.   (return-type "gboolean")
  1037. )
  1038.  
  1039. (define-method is_empty
  1040.   (of-object "GstDataQueue")
  1041.   (c-name "gst_data_queue_is_empty")
  1042.   (return-type "gboolean")
  1043. )
  1044.  
  1045. (define-method get_level
  1046.   (of-object "GstDataQueue")
  1047.   (c-name "gst_data_queue_get_level")
  1048.   (return-type "none")
  1049.   (parameters
  1050.     '("GstDataQueueSize*" "level")
  1051.   )
  1052. )
  1053.  
  1054. (define-method limits_changed
  1055.   (of-object "GstDataQueue")
  1056.   (c-name "gst_data_queue_limits_changed")
  1057.   (return-type "none")
  1058. )
  1059.  
  1060.  
  1061.